#include "Person.h"

Person::Person(const string& fname, const string& lname)
{
	this->first_name = fname;
	this->last_name = lname;
}
Person::~Person()
{

}
void Person::Show()const
{
	cout << first_name << " " << last_name << endl;
}

Gunslinger::Gunslinger(const string& fname , const string& lname, int nicks ):Person(fname,lname)
{
	this->nicks = nicks;
}
Gunslinger::~Gunslinger()
{

}
double Gunslinger::Draw()const
{
	srand(time(0));
	return rand() % 60;
}
void Gunslinger::Show()const 
{
	Person::Show();
	cout << "nick: " << nicks << endl;
}

PokerPlayer::PokerPlayer(const string& fname , const string& lname ):Person(fname,lname)
{

}
PokerPlayer::~PokerPlayer()
{

}
Card PokerPlayer::Draw()const
{
	Card temp;
	srand(time(0));
	temp.number = rand() % 52 + 1;
	temp.suite = Card::SUITE(rand() % 4);
	return temp;
}

BadDude::BadDude(const string& fname, const string& lname, int nicks):Gunslinger(fname,lname,nicks)
{

}
BadDude::~BadDude()
{

}
double BadDude::Gdraw()const
{
	return Gunslinger::Draw();
}
int BadDude::Cdraw()const
{
	return PokerPlayer::Draw().number;
}
void BadDude::Show()const
{
	Gunslinger::Show();
}